Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632705 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter

font/ cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter/font/
1 Items
  • sans.ttf
  • assets/ cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter/assets/
    1 Items
  • scrabble.png
  • style.css cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter/style.css
    94 Views
    0 Comments
    * {
    padding: 0;
    box-sizing: border-box;
    font-family: "sans";
    }

    @font-face {
    font-family: "sans";
    index.html cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter/index.html
    312 Views
    0 Comments
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <link rel="shortcut icon" href="assets/scrabble.png" type="image/x-icon">
    script.js cody/swapnilsparsh/30DaysOfJavaScript/24 - Word Counter/script.js
    113 Views
    0 Comments
    var input = document.querySelectorAll('textarea')[0],
    characterCount = document.querySelector('#characterCount'),
    wordCount = document.querySelector('#wordCount'),
    sentenceCount = document.querySelector('#sentenceCount'),
    paragraphCount = document.querySelector('#paragraphCount');

    // updating the displayed stats after every keypress
    input.addEventListener('keyup', function() {